package com.qk.management.mapper;

import com.qk.dto.activity.ActivityDTO;
import com.qk.entity.Activity;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author: Enid
 * @date: 2025/10/10 18:25
 * @description:
 */
@Mapper
public interface ActivityMapper {
    public List<Activity> list(ActivityDTO activityDTO);

    void addActivity(Activity activity);

    @Select("select * from activity where id = #{id}")
    Activity getById(Integer id);

    void update(Activity activity);

    @Delete("delete from activity where id = #{id}")
    void delete(Integer id);

    List<Activity> listOfType(Integer type);
}
